package com.wsq.nutz.ioc;

import org.nutz.log.Log;
import org.nutz.log.Logs;

public class PetService {

	public static final Log log = Logs.get();
	
	private long age;
	private String name;
	
	
	public PetService(long age){
		this.age = age;
	}
	public void init(){
		log.debug("i am initing");
	}
	
	public void fetchMe(){
		log.debug("Fetch ing");
	}
	
	public void close(){
		log.debug("Close ing");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getAge() {
		return age;
	}

	public void setAge(long age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "PetService [age=" + age + ", name=" + name + "]";
	}
	
	
}
